package com.carbon.system.service;

import com.carbon.common.service.BaseService;
import com.carbon.domain.common.ApiResult;
import com.carbon.system.entity.FeishuFiletoken;
import com.carbon.system.entity.Menu;
import com.carbon.system.entity.MenuVO;

import java.util.List;

public interface MenuService extends BaseService<Menu> {
    public List<MenuVO> getUserMenus(Long accountId);
    public List<MenuVO> buildMenuTree(List<MenuVO> menus, Integer parentId);

    List<MenuVO> getAllPermissions();

    boolean saveMenu(Menu menu);

    boolean updateMenuById(Menu menuVO);

    Integer deleteMenuById(Long menuId);

    List selectSons(Long menuId);
}
